package cn.le.theme;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 项目名  spring-boot
 * Created by lansp
 * Created at 2018/6/1
 * 描述:
 */
@Component
@RabbitListener(queues = "topic.A")
class TopicREceiverA {
	@RabbitHandler
	public void process(String message){
		System.out.println("Topic ReceiverA : " + message);
	}
}

@Component
@RabbitListener(queues = "topic.B")
class TopicREceiverB {
	@RabbitHandler
	public void process(String message){
		System.out.println("Topic ReceiverB : " + message);
	}
}
